#include <iostream>
#include <string>
#include <cstdio>
#include <cstring>
#include <unistd.h>
#include <pthread.h>
#include <thread>



int main()
{
    std::thread t([](){
        while(true)
        {
            std::cout << "我们是新线程,我的名字是: new thread" << std::endl;
            sleep(1);
        }
    });
    while(true)
    {
        std::cout << "我们是main线程..." << std::endl;
        sleep(1);
    }
    return 0;
}



